package com.simple.study.service;

import com.simple.study.base.service.BaseService;
import com.simple.study.entity.PageResult;
import com.simple.study.pojo.User;

/**
 * @ClassName UserService
 * @Author SimpleTree
 **/
public interface UserService extends BaseService {
    User findByUsername(String username);

    PageResult<User> getUsersList(String query, Integer pagenum, Integer pagesize);

    User addUser(User user);

    User findById(Integer id);

    User editUserById(User user, Integer id);

    void deleteUserById(Integer userId);

    void updateUserState(User user, Integer userId);

    void distributionRole(Integer userId, User user);
}
